package com.usdt.system.service.impl.cp;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usdt.system.domain.cp.ClueFollowUpEntity;
import com.usdt.system.mapper.cp.ClueFollowUpMapper;
import com.usdt.system.service.cp.ClueFollowUpService;

/**
 * <p>
 * 线索-跟进 服务实现类
 * </p>
 *
 * @author L
 * @since 2025-09-30
 */
@Service
public class ClueFollowUpServiceImpl extends ServiceImpl<ClueFollowUpMapper, ClueFollowUpEntity> implements ClueFollowUpService {

	@Override
	public List<ClueFollowUpEntity> getClueFollowUpByClueId(Integer clueId) {
		QueryWrapper<ClueFollowUpEntity> query = new QueryWrapper<ClueFollowUpEntity>();
		query.eq("is_del", false).eq("clue_id", clueId).orderByDesc("id");
		
		return baseMapper.selectList(query);
		
	}

}
